﻿@model PortalWeb.Areas.Admin.Models.EditUserViewModel

@{
    Layout = null;
    ViewBag.Title = "删除 用户";
}
<div class="modal-content">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h4 id="myModalLabel" class="modal-title">@ViewBag.Title</h4>
    </div>
    <div class="modal-body">
        <dl class="dl-horizontal">
            <dt>
                @Html.DisplayNameFor(model => model.UserName)
            </dt>
            <dd>
                @Html.DisplayFor(model => model.UserName)
            </dd>

            <dt>
                @Html.DisplayNameFor(model => model.Email)
            </dt>

            <dd>
                @Html.DisplayFor(model => model.Email)
            </dd>
        </dl>
    </div>
    @using (Ajax.BeginForm("Delete", "Function", new AjaxOptions
    {
        InsertionMode = InsertionMode.Replace,
        HttpMethod = "POST",
        OnSuccess = "OnSuccess"
    }, new { @class = "form-horizontal", role = "form" }))
    {
        @Html.AntiForgeryToken()

        <div class="modal-footer">
            <button type="submit" class="btn btn-danger">刪除</button>
            <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">取消</button>
        </div>
    }
</div>
